cmake_minimum_required(VERSION 3.16)

set(PROJECT_NAME myShark)

# 编译类型 build type
if(CMAKE_BUILD_TYPE STREQUAL Debug)
    add_definitions(-D_DEBUG)
else()
    add_definitions(-D_RELEASE)
endif()

set(CMAKE_CXX_STANDARD 17)

project(${PROJECT_NAME} LANGUAGES CXX)

# 设置静态库导出路径
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${myShark_SOURCE_DIR}/lib)
# 设置动态库导出路径
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${myShark_SOURCE_DIR}/bin)
# 设置可执行文件导出路径
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${myShark_SOURCE_DIR}/bin)

# 设置第三方库路径
set(3rd ${CMAKE_SOURCE_DIR}/3rd)
message(STATUS "3rd path: ${3rd}")
message(STATUS "system name: ${CMAKE_HOST_SYSTEM_NAME}")


add_subdirectory(./3rd)
add_subdirectory(./src)

